//
//  ListTableViewCell.m
//  我的图书馆
//
//  Created by 孙  路 on 15-1-5.
//  Copyright (c) 2015年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "ListTableViewCell.h"

@implementation ListTableViewCell
- (void)dealloc
{
    [_imageV release];
    [_nameLabel release];
    [_numLabel release];
    [_iconImageView release];
    [super dealloc];
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.imageV = [[UIImageView alloc] initWithFrame:CGRectMake(15, 15, 30, 30)];
        [self.contentView addSubview:_imageV];
        [_imageV release];

        self.nameLabel = [[UILabel alloc] initWithFrame:CGRectMake(50, 15, 100, 30)];
        [self.contentView addSubview:_nameLabel];
        [_nameLabel release];


        self.numLabel = [[UILabel alloc] initWithFrame:CGRectMake(self.contentView.frame.size.width - 110, 20, 20, 20)];
        [self.contentView addSubview:_numLabel];
        [_numLabel release];

        self.iconImageView = [[UIImageView alloc] initWithFrame:CGRectMake(self.contentView.frame.size.width - 90, 20, 20, 20)];
        [self.contentView addSubview:_iconImageView];
        [_iconImageView release];

    }
    return self;
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
